<?php
/**
 * Layout of the groups profile page
 *
 * @uses $vars['entity']
 */

echo elgg_view('groups/profile/summary', $vars);
if (group_gatekeeper(false)) {
    echo elgg_view('groups/profile/widgets', $vars);
} else {
    echo elgg_view('groups/profile/closed_membership');
    //$group = $vars['entity'];
//    if ($group->subtype == PROJECT_GROUP && $group->teacher_guid == elgg_get_logged_in_user_guid()) {
//        echo elgg_view('groups/profile/widgets', $vars);
//    } else {

//    }
}
